home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / bash / bash_108 / bash-108.zoo / bash-1.08 / cppmagic.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1991-05-02  |  216 b   |  11 lines

  1. #!/bin/sh
  2. # Test to see if /lib/cpp is really GNU cpp.
  3. #
  4. if [ -f /lib/cpp ]; then
  5.    unknown_flag=`/lib/cpp -traditional /dev/null 2>&1 | grep unknown`
  6.   if [ ! "$unknown_flag" ]; then
  7.     echo -traditional
  8.   fi
  9. fi
  10.  
  11.